/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.excel;

import com.bedatadriven.mso.core.MsoSyncEventType;
import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for Excel.AppEvents*/
public class AppEvents extends JavaScriptObject {

	protected AppEvents() { }
	public native final void newWorkbook(Workbook wb)/*-{
		this.NewWorkbook( wb);
	}-*/;

	public native final void sheetSelectionChange(Object sh, Range target)/*-{
		this.SheetSelectionChange( sh, target);
	}-*/;

	public native final void sheetBeforeDoubleClick(Object sh, Range target, boolean cancel)/*-{
		this.SheetBeforeDoubleClick( sh, target, cancel);
	}-*/;

	public native final void sheetBeforeRightClick(Object sh, Range target, boolean cancel)/*-{
		this.SheetBeforeRightClick( sh, target, cancel);
	}-*/;

	public native final void sheetActivate(Object sh)/*-{
		this.SheetActivate( sh);
	}-*/;

	public native final void sheetDeactivate(Object sh)/*-{
		this.SheetDeactivate( sh);
	}-*/;

	public native final void sheetCalculate(Object sh)/*-{
		this.SheetCalculate( sh);
	}-*/;

	public native final void sheetChange(Object sh, Range target)/*-{
		this.SheetChange( sh, target);
	}-*/;

	public native final void workbookOpen(Workbook wb)/*-{
		this.WorkbookOpen( wb);
	}-*/;

	public native final void workbookActivate(Workbook wb)/*-{
		this.WorkbookActivate( wb);
	}-*/;

	public native final void workbookDeactivate(Workbook wb)/*-{
		this.WorkbookDeactivate( wb);
	}-*/;

	public native final void workbookBeforeClose(Workbook wb, boolean cancel)/*-{
		this.WorkbookBeforeClose( wb, cancel);
	}-*/;

	public native final void workbookBeforeSave(Workbook wb, boolean saveAsUI, boolean cancel)/*-{
		this.WorkbookBeforeSave( wb, saveAsUI, cancel);
	}-*/;

	public native final void workbookBeforePrint(Workbook wb, boolean cancel)/*-{
		this.WorkbookBeforePrint( wb, cancel);
	}-*/;

	public native final void workbookNewSheet(Workbook wb, Object sh)/*-{
		this.WorkbookNewSheet( wb, sh);
	}-*/;

	public native final void workbookAddinInstall(Workbook wb)/*-{
		this.WorkbookAddinInstall( wb);
	}-*/;

	public native final void workbookAddinUninstall(Workbook wb)/*-{
		this.WorkbookAddinUninstall( wb);
	}-*/;

	public native final void windowResize(Workbook wb, Window wn)/*-{
		this.WindowResize( wb, wn);
	}-*/;

	public native final void windowActivate(Workbook wb, Window wn)/*-{
		this.WindowActivate( wb, wn);
	}-*/;

	public native final void windowDeactivate(Workbook wb, Window wn)/*-{
		this.WindowDeactivate( wb, wn);
	}-*/;

	public native final void sheetFollowHyperlink(Object sh, Hyperlink target)/*-{
		this.SheetFollowHyperlink( sh, target);
	}-*/;

	public native final void sheetPivotTableUpdate(Object sh, PivotTable target)/*-{
		this.SheetPivotTableUpdate( sh, target);
	}-*/;

	public native final void workbookPivotTableCloseConnection(Workbook wb, PivotTable target)/*-{
		this.WorkbookPivotTableCloseConnection( wb, target);
	}-*/;

	public native final void workbookPivotTableOpenConnection(Workbook wb, PivotTable target)/*-{
		this.WorkbookPivotTableOpenConnection( wb, target);
	}-*/;

	protected native final void _workbookSync(Workbook wb,  int syncEventType)/*-{
		this.WorkbookSync( wb, syncEventType);
	}-*/;

	public final void workbookSync(Workbook wb, MsoSyncEventType syncEventType){
		_workbookSync(wb, syncEventType.getValue());
	}
	public native final void workbookBeforeXmlImport(Workbook wb, XmlMap map, String url, boolean isRefresh, boolean cancel)/*-{
		this.WorkbookBeforeXmlImport( wb, map, url, isRefresh, cancel);
	}-*/;

	public native final void workbookAfterXmlImport(Workbook wb, XmlMap map, boolean isRefresh, int result)/*-{
		this.WorkbookAfterXmlImport( wb, map, isRefresh, result);
	}-*/;

	public native final void workbookBeforeXmlExport(Workbook wb, XmlMap map, String url, boolean cancel)/*-{
		this.WorkbookBeforeXmlExport( wb, map, url, cancel);
	}-*/;

	public native final void workbookAfterXmlExport(Workbook wb, XmlMap map, String url, int result)/*-{
		this.WorkbookAfterXmlExport( wb, map, url, result);
	}-*/;

	public native final void workbookRowsetComplete(Workbook wb, String description, String sheet, boolean success)/*-{
		this.WorkbookRowsetComplete( wb, description, sheet, success);
	}-*/;

	public native final void afterCalculate()/*-{
		this.AfterCalculate( );
	}-*/;

}
